﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200042D RID: 1069
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnableRogueTalentScRsp : IMessage<EnableRogueTalentScRsp>, IMessage, IEquatable<EnableRogueTalentScRsp>, IDeepCloneable<EnableRogueTalentScRsp>, IBufferMessage
	{
		// Token: 0x17000DC4 RID: 3524
		// (get) Token: 0x06003007 RID: 12295 RVA: 0x0008484F File Offset: 0x00082A4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnableRogueTalentScRsp> Parser
		{
			get
			{
				return EnableRogueTalentScRsp._parser;
			}
		}

		// Token: 0x17000DC5 RID: 3525
		// (get) Token: 0x06003008 RID: 12296 RVA: 0x00084856 File Offset: 0x00082A56
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnableRogueTalentScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000DC6 RID: 3526
		// (get) Token: 0x06003009 RID: 12297 RVA: 0x00084868 File Offset: 0x00082A68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnableRogueTalentScRsp.Descriptor;
			}
		}

		// Token: 0x0600300A RID: 12298 RVA: 0x0008486F File Offset: 0x00082A6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnableRogueTalentScRsp()
		{
		}

		// Token: 0x0600300B RID: 12299 RVA: 0x00084878 File Offset: 0x00082A78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnableRogueTalentScRsp(EnableRogueTalentScRsp other) : this()
		{
			this.talentInfoList_ = ((other.talentInfoList_ != null) ? other.talentInfoList_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600300C RID: 12300 RVA: 0x000848C4 File Offset: 0x00082AC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnableRogueTalentScRsp Clone()
		{
			return new EnableRogueTalentScRsp(this);
		}

		// Token: 0x17000DC7 RID: 3527
		// (get) Token: 0x0600300D RID: 12301 RVA: 0x000848CC File Offset: 0x00082ACC
		// (set) Token: 0x0600300E RID: 12302 RVA: 0x000848D4 File Offset: 0x00082AD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTalentInfoList TalentInfoList
		{
			get
			{
				return this.talentInfoList_;
			}
			set
			{
				this.talentInfoList_ = value;
			}
		}

		// Token: 0x17000DC8 RID: 3528
		// (get) Token: 0x0600300F RID: 12303 RVA: 0x000848DD File Offset: 0x00082ADD
		// (set) Token: 0x06003010 RID: 12304 RVA: 0x000848E5 File Offset: 0x00082AE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06003011 RID: 12305 RVA: 0x000848EE File Offset: 0x00082AEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnableRogueTalentScRsp);
		}

		// Token: 0x06003012 RID: 12306 RVA: 0x000848FC File Offset: 0x00082AFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnableRogueTalentScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.TalentInfoList, other.TalentInfoList) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003013 RID: 12307 RVA: 0x0008494C File Offset: 0x00082B4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.talentInfoList_ != null)
			{
				num ^= this.TalentInfoList.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003014 RID: 12308 RVA: 0x000849A1 File Offset: 0x00082BA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003015 RID: 12309 RVA: 0x000849A9 File Offset: 0x00082BA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003016 RID: 12310 RVA: 0x000849B4 File Offset: 0x00082BB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.talentInfoList_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.TalentInfoList);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003017 RID: 12311 RVA: 0x00084A10 File Offset: 0x00082C10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.talentInfoList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TalentInfoList);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003018 RID: 12312 RVA: 0x00084A68 File Offset: 0x00082C68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnableRogueTalentScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.talentInfoList_ != null)
			{
				if (this.talentInfoList_ == null)
				{
					this.TalentInfoList = new RogueTalentInfoList();
				}
				this.TalentInfoList.MergeFrom(other.TalentInfoList);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003019 RID: 12313 RVA: 0x00084AD0 File Offset: 0x00082CD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600301A RID: 12314 RVA: 0x00084ADC File Offset: 0x00082CDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.talentInfoList_ == null)
					{
						this.TalentInfoList = new RogueTalentInfoList();
					}
					input.ReadMessage(this.TalentInfoList);
				}
			}
		}

		// Token: 0x040012F7 RID: 4855
		private static readonly MessageParser<EnableRogueTalentScRsp> _parser = new MessageParser<EnableRogueTalentScRsp>(() => new EnableRogueTalentScRsp());

		// Token: 0x040012F8 RID: 4856
		private UnknownFieldSet _unknownFields;

		// Token: 0x040012F9 RID: 4857
		public const int TalentInfoListFieldNumber = 2;

		// Token: 0x040012FA RID: 4858
		private RogueTalentInfoList talentInfoList_;

		// Token: 0x040012FB RID: 4859
		public const int RetcodeFieldNumber = 9;

		// Token: 0x040012FC RID: 4860
		private uint retcode_;
	}
}
